<!--%import("filter/delete_checked.xml")-->
<!--%import("filter/manage_checked_document.xml")-->
<!--#include("header.html")-->

<form id="fo_list" action="./" method="get" onsubmit="return procFilter(this, delete_checked)">
<input type="hidden" name="page" value="{$page}" />

<!-- 목록 -->
<table cellspacing="0" class="rowTable">
<caption>Total {number_format($total_count)}, Page {number_format($page)}/{number_format($total_page)}</caption>
<thead>
    <tr>
        <th scope="col"><div>{$lang->no}</div></th>
        <th scope="col"><div><input type="checkbox" onclick="XE.checkboxToggleAll(); return false;" /></div></th>
        <th scope="col" class="wide"><div>{$lang->title}</div></th>
        <th scope="col"><div>{$lang->user_name}</div></th>
        <th scope="col"><div>{$lang->cmd_declare}</div></th>
        <th scope="col"><div>{$lang->readed_count}</div></th>
        <th scope="col"><div>{$lang->voted_count}</div></th>
        <th scope="col"><div>{$lang->date}</div></th>
    </tr>
</thead>
<tbody>
    <!--@foreach($document_list as $no => $oDocument)-->
    <tr>
        <td>{$no}</td>
        <td><input type="checkbox" name="cart" value="{$oDocument->document_srl}" onclick="doAddDocumentCart(this)" <!--@if($oDocument->isCarted())-->checked="checked"<!--@end-->/></td>
        <td>
            <a href="{getUrl('','document_srl',$oDocument->document_srl)}" onclick="window.open(this.href);return false">{$oDocument->getTitleText()}</a>

            <!--@if($oDocument->getCommentCount())-->
                [{$oDocument->getCommentCount()}]
            <!--@end-->

            <!--@if($oDocument->getTrackbackCount())-->
                [{$oDocument->getTrackbackCount()}]
            <!--@end-->
        </td>
        <td><span class="member_{$oDocument->get('member_srl')}">{$oDocument->getNickName()}</span></td>
        <td><strong>{$oDocument->get('declared_count')}</strong></td>
        <td>{$oDocument->get('readed_count')}</td>
        <td>{$oDocument->get('voted_count')}</td>
        <td>{$oDocument->getRegdate("Y-m-d")}</td>
    </tr>
    <!--@end-->
    <tr>
        <th colspan="8" class="button">
            <a href="{getUrl('','module','document','act','dispDocumentManageDocument')}" onclick="popopen(this.href,'manageDocument'); return false;" class="button black strong"><span>{$lang->cmd_manage_document}</span></a>
            <a href="#" onclick="doCancelDeclare();return false;" class="button"><span>{$lang->cmd_cancel_declare}</span></a>
        </th>
    </tr>
</tbody>
</table>


</form>

<!-- 페이지 네비게이션 -->
<div class="clear"></div>
<div class="pagination a1">
    <a href="{getUrl('page','','module_srl','')}" class="prevEnd">{$lang->first_page}</a> 
    <!--@while($page_no = $page_navigation->getNextPage())-->
        <!--@if($page == $page_no)-->
            <strong>{$page_no}</strong> 
        <!--@else-->
            <a href="{getUrl('page',$page_no,'module_srl','')}">{$page_no}</a> 
        <!--@end-->
    <!--@end-->
    <a href="{getUrl('page',$page_navigation->last_page,'module_srl','')}" class="nextEnd">{$lang->last_page}</a>
</div>
